
let executor = ( resolve , reject )=>{
    console.log( nickname );
}

const promise = new Promise( executor );

let onRejected = function(...params){
    console.log( ...params );
}

// const x = promise.then( null , onRejected);
let x = promise.catch( onRejected );
console.log( x === promise );